package com.ky.server.util;
//用来读取属性文件中的信息

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class PropertiesUtil {

	private static Properties prop=new Properties();
	static {
		try {
			prop.load(new FileReader(ConfigConstants.SERVER_PROP_PATH));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String key) {
		return prop.getProperty(key);
	}
	
}
